package com.design.ProxyMode.staticMode;

/**
 * 静态代理模式
 *
 * 新建代理类 继承被代理类  重写方法
 *
 * 缺点
 */
public class main {

    public static void main(String[] args) {
        UserServiceProxy userServiceProxy = new UserServiceProxy();
        final Boolean login = userServiceProxy.login("zhangsan", "123456");
        System.out.println("login result : " +login);
    }

}
